import request from '@/utils/request'

// 获取所有用户
export function getAllUsers(params: any) {
  return request.get('/emp/all', { params })
}

// 分页条件查询用户
export function getUserList(params: any) {
  return request.get('/emp/selectWithCondition', { params })
}

// data: data
// 添加用户
export function addUser(data:any) {
  return request.post('/emp/add', data)
}

// 更新用户
export function updateUser(data:any) {
  return request.put('/emp/update', data)
}

// 删除用户
export function deleteUser(username:any) {
  return request.delete('/emp/delete', { params: { username } })
}
